package org.springframework.demo1;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.demo1.support.UserService;

public class DemoTest1 {

	/**
	 * 测试代码是否编译通过了
	 * @param args
	 */
	public static void main(String[] args) {
		//context高级容器的讲解
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(DemoConfig1.class);
		UserService bean = context.getBean(UserService.class);
		bean.hello();
	}
}
